import type { RoleData } from "@/api/role/type";

export type LoginData = {
	username: string;
	password: string;
};

export type LoginResult = {
	accessToken: string;
};

export type UserInfo = {
	id?: number;
	roles?: number[];
	username: string;
	password: string;
	nickname: string;
	avatar?: string;
	active: number | null;
};

export interface IRoleList {
	assignRoles: number[];
	allRoles: RoleData[];
}
